'''class Dog:
    def __init__(self,name,age):
        self.name = name
        self.age = age
    def modify(self,new_name):
        self.name = new_name
    def sit(self):
        print(f"{self.name} is now sitting")
    def roll_over(self):
        print(f"{self.name} rolled over!")
'''

'''my_dog = Dog('Willie',6)
print(f"My dog is {my_dog.name}")
print(f"it is {my_dog.age} years old")
my_dog.sit()
my_dog.roll_over()
my_dog.modify('denggong')
my_dog.sit()'''

'''class Animmal(Dog):
    def __init__(self,name,age):
        super().__init__(name,age)

my_animmal = Animmal('shagou',18)
my_animmal.sit()'''

'''import random
class Die:
    def __init__(self,sides):
        self.sides = sides
    def roll_die(self):
        print(self.sides)

count = 10
while count:
    my_die = Die(random.randint(1,6))
    my_die.roll_die()
    count -= 1'''

'''import random
caipiao = [1,2,3,4,5,6,7,8,9,0,'a','b','c','d','e']
print(random.choice(caipiao))'''

'''file_name = 'date.txt'
with open(file_name,'w') as file_object:
    file_object.write("2021\n")
    file_object.write("9\n")
    file_object.write("29\n")'''

file_name = 'date.txt'
with open(file_name,'r') as file_object:
    for line in file_object:
        print(line.rstrip())